package com.example.wac.service;

import com.example.wac.vo.ApiResult;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author wuancheng
 * @description
 * @date 2022-01-13 15:09:00
 */

public interface ExcelService {

    /**
     * 商品数据导出(一次性填充)
     *
     * @param response
     */
    void goodsExport(HttpServletResponse response);

    /**
     * 商品数据分页导出(分多次导出)
     *
     * @param response
     */
    void goodsExportByPage(HttpServletResponse response);

    /**
     * 商品数据导出至oss
     */
    ApiResult goodsExportOss();

    /**
     * 商品Excel信息初始化
     *
     * @param response
     * @param file
     * @return
     */
    ApiResult goodsInit(HttpServletResponse response , @RequestParam("file") MultipartFile file);

    /**
     * WorkbookFactory商品Excel信息初始化
     *
     * @param response
     * @param file
     * @return
     */
    ApiResult goodsInitByWorkbookFactory(HttpServletResponse response, @RequestParam("file") MultipartFile file);
}
